#ifndef ExportDialog_H
#define ExportDialog_H

#include <QDialog>
#include <QFileDialog>
#include "ui_exportdialog.h"

class ExportDialog : public QDialog, Ui::exportDialog
{
    Q_OBJECT

public:
    enum TypeOfExport { ExportToFolder,
                        ExportToArchive,
                        ExportToSelfExtratingArchive };

    explicit ExportDialog(TypeOfExport typeOfExport, QWidget *parent = 0);

    TypeOfExport type;

private slots:
    void findPathForExport();

    void on_startButton_pressed() { emit readyToExport(exportTo_field->text(), onlyGeneralFiles->isChecked()); close(); deleteLater(); }
    void on_cancelButton_pressed(){ close(); deleteLater(); }

signals:
    void readyToExport(QString exportPath, bool mainFiles);
};

#endif // ExportDialog_H
